﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VideoNetApplication.Common;
using VideoNetApplication.Common.Service;

namespace VideoNetApplication
{
    public partial class ViewTeacherListHtml :BasePage
    {

        
        protected void Page_Load(object sender, EventArgs e)
        {
           
            ShowTeachers();
        }

        private  void  ShowTeachers()
        {
            TeacherService teacher = new TeacherService();
            int recordCount=0;
            List<V_teacher> lt = teacher.GetTeacherByALL(SchoolId, pager.StartRecordIndex, pager.PageSize,out recordCount);
            pager.RecordCount = recordCount;
            repTeacher.DataSource = lt;
            repTeacher.DataBind();
        }

        protected void pager_PageChanged(object sender, EventArgs e)
        {
            ShowTeachers();
        }
    }
}
